//
//  MGRequestService+My.h
//  MortgageHelper
//
//  Created by zhangxiang on 16/11/18.
//  Copyright © 2016年 zhangxiang. All rights reserved.
//

#import "MGRequestService.h"


#import "MGUserInfoModel.h"
@interface MGRequestService (My)

// 登录

+ (NSURLSessionDataTask *)requestloginWithuserName:(NSString *)userName AndPassword:(NSString *)password success:(void(^)(MGBaseRspModel *model))success
                                             failure:(FailureResponseBlock)failure;


// 注册

+ (NSURLSessionDataTask *)requestRegisterWithuserName:(NSString *)userName AndPassword:(NSString *)password success:(void(^)(MGBaseRspModel *model))success
                                           failure:(FailureResponseBlock)failure;

// 修改密码

+ (NSURLSessionDataTask *)requestModifyThePasswordWitholdPassword:(NSString *)oldPassword AndnewPassword:(NSString *)newPassword success:(void(^)(MGBaseRspModel *model))success
                                              failure:(FailureResponseBlock)failure;


// 获取用户信息

+ (NSURLSessionDataTask *)requestgetuserInfosuccess:(void(^)(MGUserInfoModel *model))success
                                           failure:(FailureResponseBlock)failure;

// 修改用户信息

+ (NSURLSessionDataTask *)requestupdateUserInfoWithUserInfo:(MGUserInfoModel *)model   success:(void(^)(MGBaseRspModel *model))success
                                            failure:(FailureResponseBlock)failure;

// 获取产品列表

+ (NSURLSessionDataTask *)requestgetProductListWithtype:(int)productType andorderAmount:(int)orderAmount andorderTerm:(int)orderTerm andpageIndex:(int)pageIndex andpageSize:(int)pageSize  success:(void(^)(MGBaseRspModel *model))success
                                                    failure:(FailureResponseBlock)failure;

// 获取产品详情

+ (NSURLSessionDataTask *)requestgetProductInfo:(int)productId success:(void(^)(MGBaseRspModel *model))success
                                              failure:(FailureResponseBlock)failure;

// 添加申请

+ (NSURLSessionDataTask *)requestaddApplyOrder:(int)productId success:(void(^)(MGBaseRspModel *model))success
                                        failure:(FailureResponseBlock)failure;
@end
